<template>
  <div class="box1">
    <h1>动态绑定props---子组件</h1>
    {{ init }}
  </div>
</template>

<script setup>
const props = defineProps(["init"]);
console.log(props.init);
</script>

<style>
.box1 {
  width: 100%;
  height: 100%;
  background-color: #f00;
}
</style>
